package com.easy.common.core.domain.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;

/**
 * 用户 注册 对象
 *
 * @author RuoYu
 * @date 2022/11/23
 */
@ApiModel("用户 注册 对象")
public class RegisteredBody implements Serializable {

    private static final long serialVersionUID = 1L;
    /**
     * 用户名
     */
    @ApiModelProperty("用户名")
    private String username;

    /**
     * 手机号（邮箱号）
     */
    @ApiModelProperty("手机号（邮箱号）")
    private String unique;

    /**
     * 用户密码
     */
    @ApiModelProperty("用户密码")
    private String password;

    /**
     * 验证码（图片人机校验）
     */
    @ApiModelProperty("验证码（图片人机校验）")
    private String code;

    /**
     * 消息验证码
     */
    @ApiModelProperty("消息验证码")
    private String messageCode;

    @ApiModelProperty("注册类型")
    private String type;

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getUnique() {
        return unique;
    }

    public void setUnique(String unique) {
        this.unique = unique;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMessageCode() {
        return messageCode;
    }

    public void setMessageCode(String messageCode) {
        this.messageCode = messageCode;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    @Override
    public String toString() {
        return "RegisteredBody{" +
                "username='" + username + '\'' +
                ", unique='" + unique + '\'' +
                ", password='" + password + '\'' +
                ", code='" + code + '\'' +
                ", messageCode='" + messageCode + '\'' +
                ", type='" + type + '\'' +
                '}';
    }
}
